package com.auxgroup.hr.front.commons.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
/**
 * 处理空对像转换json问题
 * @author penghui
 * @Date 2017年10月25日
 */
@Configuration
public class JacksonConfig {
	@Bean
	public ObjectMapper getObjectMapper (){
		ObjectMapper mapper = new ObjectMapper();	
		return mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
		
	}
}
